package com.miao.dto;

import com.miao.base.exception.ValidGroups;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

@Data
public class AddCourseDto {

 @NotEmpty(message = "课程名称不能为空，添加失败！",groups = {ValidGroups.Insert.class})
 private String name;

 @NotEmpty(message = "适用人群不能为空，添加失败！",groups = {ValidGroups.Insert.class})
 @Size(message = "适用人群内容过少",min = 10)
 private String users;

 private String tags;

 @NotEmpty(message = "课程分类不能为空，添加失败！",groups = {ValidGroups.Insert.class})
 private String mt;

 @NotEmpty(message = "课程分类不能为空，添加失败！",groups = {ValidGroups.Insert.class})
 private String st;

 @NotEmpty(message = "课程等级不能为空，添加失败！",groups = {ValidGroups.Insert.class})
 private String grade;

 private String teachmode;

 @NotEmpty(message = "课程描述不能为空，添加失败！",groups = {ValidGroups.Insert.class})
 private String description;

 private String pic;

 @NotEmpty(message = "收费规则不能为空，添加失败！",groups = {ValidGroups.Insert.class})
 private String charge;

 private Float price;

 private Float originalPrice;

 private String qq;

 private String wechat;

 private String phone;

 private Integer validDays;
}
